package lab02.test03;

public class Student {
    float computerScore;
    float mathScore;
    float englishScre;
    public String department;

    float sum(){
        return computerScore+mathScore+englishScre;
    }
    float average(){
        return (computerScore+mathScore+englishScre)/3;
    }
    float  max() {
        float max = computerScore > mathScore ? computerScore : mathScore;
        max=max>englishScre?max:englishScre;
        return max;
    }
    float min(){
        float min=computerScore<mathScore?computerScore:mathScore;
        return min;
    }
    void printSdudent(){
        System.out.println("计算机成绩："+computerScore);
        System.out.println("数学成绩："+mathScore);
        System.out.println("英语成绩："+englishScre);
    }

    public static void main(String[] args) {

    }

}
